/**
 * 分割数组
 *
 * @USER: Administrator
 * @DATE: 2024/10/5 下午1:44
 * @VERSION: 1.0.0
 */
public class LC3046 {
    public static void main(String[] args) {

    }

    public boolean isPossibleToSplit(int[] nums) {
        int[] counts = new int[100];
        for (int num : nums) {
            counts[num - 1]++;
            if (counts[num-1] > 2) {
                return false;
            }
        }

        return true;
    }
}
